<extend name="Application/Home/View/Layout/application.html" />

<block name="content">
    <!-----全站热门------------>
    <div class="bs-example col-sm-3" data-example-id="simple-table">
        <table class="table">
            <caption>全站热门</caption>
            <tbody>
            <volist name="hots" id="hot">
            <tr>
                <th scope="row">{{$hot.name}}
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    热度：{{$hot.view}}</th>
            </tr>
            </volist>
            </tbody>
        </table>
    </div>
    <!-----右侧代码----------->
    <div class="bs-example col-sm-9" data-example-id="simple-table">
        <table class="table">
            <tbody>
                <tr>
                    <th>
                        类别：
                    <a href="{{:U('index', $type_url)}}"  class="btn btn-link">全部</a>

                    <volist name="types" id="type">
                        <a href="{{:U($url, array_merge($type_url, array('type_id'=>$type['id'])))}}"  class="btn btn-link">{{$type.name}}</a>
                    </volist>
                    </th>

                </tr>

            <tr>
                <th scope="row">地区：
                    <a href="{{:U('index', $style_url)}}"  class="btn btn-link">全部</a>
                    <volist name="regions" id="region">
                        <a href="{{:U($url, array_merge($type_url, array('region_id'=>$region['id'])))}}"  class="btn btn-link">{{$region.name}}</a>
                    </volist>
                </th>
            </tr>
            <tr>
                <th scope="row">类型：
                    <a href="{{:U('index', $style_url)}}"  class="btn btn-link">全部</a>
                    <volist name="styles" id="style">
                        <a href="{{:U($url, array_merge($style_url, array('style_id'=>$style['id'])))}}"  class="btn btn-link">{{$style.name}}</a>
                    </volist>
                </th>
            </tr>

                    <table class="table table-hover">
                        <div class="row">
                            <volist name="movies" id="m">
                                <div class="col-xs-2 col-md-2">

                                    <a href="{{:U('show',array('id'=>$m['id']))}}">
                                        <img  alt="最新发布" style="height: 140px; width: 100%; display: block;" src="{{$m.thumb}}" width="365px" height="180px" data-holder-rendered="true">
                                    </a>
                                    <div class="caption">
                                        <h5>{{$m.name}}</h5>
                                    </div>

                                </div>
                            </volist>
                        </div>

                    </table>



            </tbody>
        </table>
    </div>
</block>